package com.guestbook.biz;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;
@Transactional(rollbackFor=Exception.class)
public interface IBiz<T,PK extends Serializable>
{
    @Transactional(readOnly=true)
    public T findById(PK id);

    @Transactional(readOnly=true)
    public List<T> findAll();
    public T save(T entity);

    public T update(T entity);

    public void deleteById(PK id);
}
